package com.yanqu.road.entity.activity.sonhai.enums;

public enum SonHaiEnergyPropEnum {

    PROP_123974(123974, "山海行纪"),
    PROP_123975(123975, "山海志怪"),
    ;

    /**
     * 道具ID
     */
    private int id;

    /**
     * 名称
     */
    private String name;


    SonHaiEnergyPropEnum(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    /**
     * 判断道具ID是否正确
     * @param propId
     * @return
     */
    public static boolean checkPropId(int propId) {
        for (SonHaiEnergyPropEnum energyPropEnum : SonHaiEnergyPropEnum.values()) {
            if (propId == energyPropEnum.getId()) {
                return true;
            }
        }
        return false;
    }
}
